﻿//===============================================================================
// Copyright © 2011 Allen Lee
// This code released under the terms of the MIT License (http://iridescent.codeplex.com/license)
//===============================================================================
using System;
using System.Globalization;
using System.Windows.Data;

namespace Iridescent.Utils
{
    public class MonthNameConverter : IValueConverter
    {
        object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return culture.DateTimeFormat.GetAbbreviatedMonthName((int)value);
        }

        object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
